package com.company.eduservice.service;

import com.company.eduservice.entity.EduChapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.company.eduservice.vo.chapter.ChapterVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author testjava
 * @since 2020-04-18
 */
public interface EduChapterService extends IService<EduChapter> {

    //根据课程ID查询所有查找大纲列表
    List<ChapterVo> getChapterVideoByCourseId(String courseId);

    //添加课程大纲的章节
    void addChapterByCourse(EduChapter eduChapter);

    //根据章节ID查询章节
    EduChapter findChapterById(String chapterId);

    //修改课程大纲的章节
    void updateChapter(EduChapter eduChapter);

    //删除章节
    void deleteChapterById(String chapterId);

    void deleteChapterByCourseId(String courseId);
}
